package com.txby.platformCore.entity;

import java.lang.reflect.Field;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

import com.jck.mybatis.annotation.MysqlAutoPK;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 业务实体类 - 基类
* @ClassName: BizBaseEntity 
* @Description: TODO （描述）
* @author 作者 jacking
* @date 2016-6-29 下午6:38:31
 */
@MappedSuperclass
@Data
public class BizBaseEntity implements java.io.Serializable {
	/**
	 * pk
	 */
	@Id
	@GenericGenerator(name="uuid",strategy="uuid")
	@GeneratedValue(generator="uuid")
	@Column(name = "id", unique = true, nullable = false)
    private String id;
	/**
	 * pk
	 */
	@ApiModelProperty(hidden = true)
	@MysqlAutoPK
	private Long id_;
	/**
	 * 生成 记录时间
	 */
	@ApiModelProperty(hidden = true)
	private Date createTime=new Date();
    /**
     * 修改 记录时间
     */
	@ApiModelProperty(hidden = true)
	private Date updateTime=createTime;
	/**
	 * 0:正常1：停用
	 */
	@ApiModelProperty(hidden = true)
	private Integer status=0;
	/**
	 * 床位号
	 */
	private String bedNO;
	/**
	 * 病区编码
	 */
	private String sickAreaNO;
	/**
	 * 创建人
	 */
	@ApiModelProperty(hidden = true)
	private String creater;
	/**
	 * 修改人
	 */
	@ApiModelProperty(hidden = true)
	private String updater;
	/**
	 * 身份证号
	 */
	private String ICNO;
 
 public static void main(String[] args) {
	Field [] fs=BizBaseEntity.class.getDeclaredFields();
	int i=1;
	for(Field f:fs){
		System.out.println(i+":"+f.getName());
		i++;
		
	}
}

}
